<?php
namespace app\api\controller;

header('Access-Control-Allow-Origin:*');
// 响应类型
header('Access-Control-Allow-Methods:*');
// 响应头设置
header('Access-Control-Allow-Headers:x-requested-with,content-type');

class Newffc
{

    public function send()
    {

        ini_set("error_reporting", "E_ALL & ~E_NOTICE");
        $obj->gameID = '129';
        $obj->pageSize = '1000';
        $obj->pageIndex = '1';
        $obj->_ = '1539321037216';
        $data = json_encode($obj);
        $url = "https://9c0022.com/Result/GetLotteryResultList?gameID=129&pageSize=301&pageIndex=1&_=1539321037216";
        $res = $this->http_request($url, $data);
        $obj = json_decode($res);

        $total = $obj->total;
        $list = $obj->list;
        return json(['list' => $list]);

    }

}
